package com.heima.controller.vm_service;

import com.baomidou.mybatisplus.extension.api.R;
import com.heima.pojo.entity.Business;
import com.heima.service.BusinessService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("/api/vm-service/businessType")
public class BusinessController {
    @Autowired
    private BusinessService businessService;

    /**
     * 查询商圈列表
     * @return
     */
    @GetMapping
    public List<Business> getBusinessList(){
       List<Business> businessList = businessService.getList();
        return businessList;
    }





}
